#ifndef TRAYWIDGET_H
#define TRAYWIDGET_H

#include <QWidget>
#include <QPainter>

namespace Ui {
class TrayWidget;
}

class TrayWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TrayWidget(QWidget *parent = nullptr);
    ~TrayWidget();
    void paintEvent(QPaintEvent *);

    void SetTrayType(int type);
    void SetDripNum(int num);
    void SetDropType(int Type);

    int Tray_Type;
    int Drop_Type;
    int DripNum;

private:
    Ui::TrayWidget *ui;


    int Rows_of_TrayType_1;
    int Columns_of_TrayType_1;
    int Rows_of_TrayType_2;
    int Columns_of_TrayType_2;
    int Rows_of_TrayType_3;
    int Columns_of_TrayType_3;

    void Drawtray();
    void DrawDrip(int x, int y);

};

#endif // TRAYWIDGET_H
